package com.kingwang.training.designpattern.strategy.bo.strategy;

import lombok.Setter;

/**
 * @author King
 */
public abstract class GameCharacter {
    @Setter
    private SpeedStrategy speedStrategy;

    @Setter
    private AttackStrategy attackStrategy;

    public void move() {
        System.err.println("move");
    }

    public void attack() {
        this.attackStrategy.attack();
    }

    public void speed() {
        this.speedStrategy.speed();
    }

    public abstract void display();
}
